package data;



import java.util.ArrayList;
import java.util.List;


import com.socrata.data.View.Row;

public class LocationData {
	//mappa_musei;mappa_ostelli
	public static String[] listdb={"iu2c-9p5j","3b7c-6kcq"};
	List<Museo> listaMusei;
	List<Row> listaOstelli;
	List<Place> lista;
	
	public LocationData() {
		lista=new ArrayList<Place>();
		listaMusei=new ArrayList<Museo>();
		listaOstelli=new ArrayList<Row>();
	}
	
	public void addMuseo(Museo m){
		listaMusei.add(m);
		lista.add(m);
	}
	
	public void addListMuseo(List<Row> rows){
		
		for(int i=0;i<rows.size();i++){
			System.out.println(rows.size());
			//this.museo=rows.get(i);
			listaMusei.add(new Museo(rows.get(i)));
			lista.add(new Museo(rows.get(i)));
		}
	}
	
	
		
	
	public String toString(){
		
		for(int i=0;i<listaMusei.size();i++){
			return listaMusei.get(i).toString();
		}
		return null;
		
		
	}
	
}
